package com.cbtx.tablet.bean

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/7/1 2:57 PM
 * desc   :
 */

data class Report(
    var sysDate: Long = 0,
    val newChange: NewChangeBean? = null,
    val pollConfig: List<PollConfigBean>? = null
)

data class NewChangeBean(
    var newSetting: Any? = null,

    val newSettingUpdateTime: Any? = null,

    val newUpgrade: Any? = null,

    val newUpgradeUpdateTime: Any? = null,

    val newProgram: Boolean = false,

    val newProgramUpdateTime: Long = 0,

    val newBottomAd: Any? = null,

    val newBottomAdUpdateTime: Any? = null,

    val newFaceBackgroundUpload: Any? = null
){
    fun isNewUpgrade(): Boolean {
        return try {
            java.lang.Boolean.parseBoolean(newUpgrade as String?)
        } catch (e: Exception) {
            false
        }
    }
}

data class PollConfigBean(
    var pollConfigId: Any? = null,
    val pollName: String? = null,
    val pollIntervalTime: Int = 0
)